part of 'card.dart';

class _TypingCardWlocState extends Equatable {
  const _TypingCardWlocState({
    required this.lexicalItem,
    required this.finished,
  });

  final LexicalItem lexicalItem;
  final bool finished;

  @override
  List<Object?> get props {
    return [
      lexicalItem,
      finished,
    ];
  }

  _TypingCardWlocState copyWith({
    LexicalItem Function()? lexicalItem,
    bool Function()? finished,
  }) {
    return _TypingCardWlocState(
      lexicalItem: lexicalItem == null ? this.lexicalItem : lexicalItem(),
      finished: finished == null ? this.finished : finished(),
    );
  }
}
